package com.jurassic.demo.designMode.factory;

import java.math.BigDecimal;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/7/13 9:18
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
public class FactoryTest {
    public static void main(String[] args) {
//       NumberFactory numberFactory= NumberFactory.getFactory();
//       BigDecimal decimal= (BigDecimal) numberFactory.parse("12.13");
//        System.out.println("decimal = " + decimal);
      AbstractDocumentFactory documentFactory=  AbstractDocumentFactory.create("fast");
      HtmlDocument htmlDocument= documentFactory.createHtml("123");
      htmlDocument.save("123");

    }
}
